FROM docker-registry.jx.k8s.sumscope.com:80/library/openjdk:11

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /app
ADD target/classes /app/resources
ADD target/shenyu-bootstrap.jar /app/resources

RUN mkdir /app/logs

WORKDIR /app/resources

# ,"-XX:+UseZGC"
ENTRYPOINT ["java","-jar","-Xms2G", "-Xmx2G" ,"-Dfile.encoding=UTF-8","-Djava.security.egd=file:/dev/./urandom","-Dlogging.config=/app/resources/logback.xml","shenyu-bootstrap.jar"]